package dtnews.getdata;

import java.util.ArrayList;
import java.util.List;

import dtnnews.models.News;


public class ConvertTools {
	public static ArrayList<News> convertToListNews(List<NewsPreview> inputList) {
		ArrayList<News> res = new ArrayList<News>();		
		if (inputList != null)
		for (NewsPreview news : inputList) {
			res.add(news.toNews());
		}
		
		return res;
	}
}
